package com.party.service.exam;

import com.party.common.Page;
import com.party.model.ExamAnswer;
import com.party.model.ExamTest;

import java.util.List;

/**
 * 自建考试
 */
public interface ExamTestService {
    /**
     * 增删改查
     */
    public int addExamTestAndExamAnswer(ExamTest examTest,List<ExamAnswer> list);

    public int editExamTestAndExamAnswer(ExamTest examTest,List<ExamAnswer> list,String deleteExamTestIds);

    public int deleteExamTestByPrimaryKey(Integer id);

    public int deleteExamByIds(String ids);

    public ExamTest getExamTestByPrimaryKey(Integer id);

    public int updateExamTestByPrimaryKey(ExamTest examTest);

    /**
     * 获得自建考试数据列表（分页）
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getExamTestTestList(ExamTest examTest,int pageSize, int pageNumber);

    public List<ExamTest> getByExamId(Integer id);
}
